<?php /* Smarty version 2.6.22, created on 2009-04-19 16:19:28
         compiled from con_registrant.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'con_registrant.tpl', 34, false),)), $this); ?>
﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="frmm_registrant.css" rel="stylesheet" type="text/css">
<title>慕主先鋒教會</title>
</head>
<body>
 <form name="theForm" action="<?php echo $this->_tpl_vars['SCRIPT_NAME']; ?>
" method="post">
<div id="container"> 
  <h1><img src="frmmtitlePic.jpg" width="785" height="75"></h1>
  <div id="thick-col1"> 
   <br>   
  <p>
<TABLE>
 <tr>
    <td>中文姓名</td> 
    <td><input type="text" name="cname" value="<?php echo $this->_tpl_vars['cname']; ?>
" size="15" maxlength="25"></td>
    </tr>
<tr>
    <td><font color="#FF0000">*英文名 First Name</font></td>
    <?php if ($this->_tpl_vars['error_firstname'] == 'fname_empty'): ?> 
    <td><input type="text" name="firstname" value="" size="15" maxlength="25"><strong><font color="#FF0000">* 必需填 Require</font></strong></td>
    <?php else: ?><td><input type="text" name="firstname" value="<?php echo $this->_tpl_vars['firstname']; ?>
" size="15" maxlength="25"></td>
    <?php endif; ?>
</tr>
    <td><font color="#FF0000">*英文姓 Last Name</font></td>
    <?php if ($this->_tpl_vars['error_lastname'] == 'lname_empty'): ?> 
    <td><input type="text" name="lastname" value="" size="15" maxlength="25"><strong><font color="#FF0000">* 必需填 Require</font></strong></td>
    <?php else: ?><td><input type="text" name="lastname" value="<?php echo $this->_tpl_vars['lastname']; ?>
" size="15" maxlength="25"></td>
    <?php endif; ?>                 
<tr>
   <td>性別 Gender</td>
    <td><select name=gender>
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['gender_options'],'selected' => $this->_tpl_vars['gender']), $this);?>

    </select></td>
</tr>
   <?php if ($this->_tpl_vars['pastoral_staff'] == 'P' || $this->_tpl_vars['pastoral_staff'] == 'Y' || $this->_tpl_vars['pastoral_staff'] == 'M' || $this->_tpl_vars['pastoral_staff'] == 'I'): ?>
 <tr>
    <td>牧者 Pastoral Staff</td>
	 <td><select name=pastoral_staff><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['pastor_options'],'selected' => $this->_tpl_vars['pastoral_staff']), $this);?>

	    </select></td>
</tr>
 <tr>
    <td>職責 Title</td>
    <td><input type="text" name="title" value="<?php echo $this->_tpl_vars['title']; ?>
"></td>
</tr>
   <?php endif; ?>
   <tr>
    <td><font color="#FF0000">*電郵帳號 Email</font></td>
    <?php if ($this->_tpl_vars['error_email'] == 'email_empty'): ?> 
    <td><input name="email" type="text" value="" size="30" maxlength="40"><strong><font color="#FF0000">* 必需填 Require</font></strong></td>
    <?php else: ?><td><input name="email" type="text" value="<?php echo $this->_tpl_vars['email']; ?>
" size="25" maxlength="40"></td>
    <?php endif; ?>
   </tr>
    <tr>
    <td><font color="#FF0000">*自設密碼 Password</font></td> 
    <?php if ($this->_tpl_vars['error_pwd'] == 'password_empty'): ?> 
    <td><input type="password" name="password" value="" size="20" maxlength="30"><strong><font color="#FF0000">* 必需填 Require</font></strong></td>
    <?php else: ?><td><input type="password" name="password" value="<?php echo $this->_tpl_vars['pwd']; ?>
" size="20" maxlength="30"></td>
    <?php endif; ?>
   </tr>                 
   <tr>
    <td>住址電話 Home Phone</td>
    <td><input type="text" name="home_phone" value="<?php echo $this->_tpl_vars['homephone']; ?>
" size="18" maxlength="30"></td>
</tr>
<tr>
    <td>手提電話 Cell Phone</td>
    <td><input type="text" name="mobile_phone" value="<?php echo $this->_tpl_vars['mobilephone']; ?>
" size="18" maxlength="30"></td>
</tr>
<tr>
    <td>公司電話 Work Phone</td> 
    <td><input type="text" name="work_phone" value="<?php echo $this->_tpl_vars['workphone']; ?>
" size="18" maxlength="30"></td>
</tr>
    <tr>
    <td>住址 Adress 1 </td>
    <td><input type="text" name="address1" value="<?php echo $this->_tpl_vars['address1']; ?>
" size="45" maxlength="80"></td>
    </tr>
<tr>
    <td>住址 Adress 2</td>
    <td><input type="text" name="address2" value="<?php echo $this->_tpl_vars['address2']; ?>
" size="45" maxlength="80"></td>
   </tr>
<tr>
    <td>城市 City</td>
    <td><input type="text" name="city" value="<?php echo $this->_tpl_vars['city']; ?>
" size="15" maxlength="40"></td>
</tr>
<tr>
    <td>州 State</td>
    <td><select name=state>
   <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['state_options'],'selected' => $this->_tpl_vars['state']), $this);?>

    </select></td>
    </tr>
<tr>
    <td>郵遞 Zip Code</td>
    <td><input type="text" name="zipcode" value="<?php echo $this->_tpl_vars['zipcode']; ?>
" size="5" maxlength="10"></td>
</tr>
<tr>
    <td><font color="#FF0000">*國家 Country </font></td>
   <?php if ($this->_tpl_vars['error_country'] == 'country_empty'): ?>
   <td> <select name=country>
   <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['country_options']), $this);?>

    </select><strong><font color="#FF0000">* 必需填 Require</font></strong></td>
   <?php else: ?>
    <td><select name=country>
   <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['country_options'],'selected' => $this->_tpl_vars['country']), $this);?>

    </select></td>
    <?php endif; ?>	
</tr>
<tr> 
   <td> 教會 (Church)</td>
    <td><select name=church>
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['church_options'],'selected' => $this->_tpl_vars['church']), $this);?>

    </select></td>
</tr>
<tr>
    <td>其他,教會名字 (Other, Name of your church)</td>
    <td><input name="other_church" type="text" value="<?php echo $this->_tpl_vars['other_church']; ?>
" size="36" maxlength="254"></td>
</tr>
   <?php if ($this->_tpl_vars['pastoral_staff'] == 'P' || $this->_tpl_vars['pastoral_staff'] == 'Y' || $this->_tpl_vars['pastoral_staff'] == 'M' || $this->_tpl_vars['pastoral_staff'] == 'I'): ?>

<tr>
    <td>教會人數 Church Members</td>
	<td><select name=church_size>
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['church_size_options'],'selected' => $this->_tpl_vars['church_size'],'readonly' => 'readonly'), $this);?>

    </select>其他 <input name="church_size_other" type="text" value="<?php echo $this->_tpl_vars['church_size_other']; ?>
" size="36" maxlength="254"></td></tr>
<tr>
</tr>

<?php endif; ?> 
</TABLE>                                                                                      
  </p>
  <p>
   <input type="submit" name="update" value="Update 修改">   
   <input type="submit" name="cancel" value="Close 关闭">
   <input type="submit" name="delete" value="Delete 删除">
   <?php if ($this->_tpl_vars['error'] != ""): ?>
    <strong><font color="#FF0000">请填写* 项 Must have * Required fields filled to complete registration </font></strong>
   <?php endif; ?>
      
 </p>
 </div>
 </div>   
 </form>   
</body>
</html>